package com.myschool.server.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;

@Entity
@Table(name = "grade_level_config")
public class GradeLevel extends BaseEntity {

	@Column(nullable = false, length = 50)
	private String name;
	@Enumerated(EnumType.STRING)
	private GradeType type;

	@Column(name = "range_from", length = 10)
	private String rangeFrom;
	@Column(name = "range_to", length = 10)
	private String rangeTo;
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * @return the type
	 */
	public GradeType getType() {
		return type;
	}
	/**
	 * @param type the type to set
	 */
	public void setType(GradeType type) {
		this.type = type;
	}
	/**
	 * @return the rangeFrom
	 */
	public String getRangeFrom() {
		return rangeFrom;
	}
	/**
	 * @param rangeFrom the rangeFrom to set
	 */
	public void setRangeFrom(String rangeFrom) {
		this.rangeFrom = rangeFrom;
	}
	/**
	 * @return the rangeTo
	 */
	public String getRangeTo() {
		return rangeTo;
	}
	/**
	 * @param rangeTo the rangeTo to set
	 */
	public void setRangeTo(String rangeTo) {
		this.rangeTo = rangeTo;
	}

}
